package cn.wolfcode.trip.base.mapper;

import cn.wolfcode.trip.base.domain.Region;
import cn.wolfcode.trip.base.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RegionMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Region record);

    Region selectByPrimaryKey(Long id);

    List<Region> selectAll();

    int updateByPrimaryKey(Region record);

    List<Region> selectRegionByParentId(@Param("parentId") Long parentId);  // 基本数据类型在sql中进行if判断需要将参数转换成map格式

    List<Region> selectRegionByState(int state);
}